package com.example.blog.controller;

import com.example.blog.dao.pojo.User;
import com.example.blog.utils.UserThreadLocal;
import com.example.blog.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping
    public Result test(){
        User user = UserThreadLocal.get();
        System.out.println(user);
        return Result.success("rewaeaweawe");
    }
}
